<?php
/**
 *
 * Controller for the cart
 *
 * @package	mvm
 * @subpackage paypal
 * @author Zbigniew Mazur
 * @link http://promobico.com
 * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * VirtueMart is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

// Load the controller framework
jimport('joomla.application.component.controller');


//there is no class inside
require_once(JPATH_COMPONENT.DS.'helpers'.DS.'paypalfunctions.php');


//for the cart data
if(!class_exists('VirtueMartCart')) require(JPATH_COMPONENT.DS.'helpers'.DS.'cart.php');


/**
 * Controller for the cart view
 *
 * @package MVM
 * @subpackage Paypal
 * @author Zbigniew Mazur
 */
class MvmControllerPaypal extends JController {


	public function CanceledTrnasaction() {		
		echo "Transaction cancelled";
		return;
		
		$doc =& JFactory::getDocument();
		$format = $doc->getType();
		$view = $this->getView('paypal', $format);
//		parent::display();
	}
	
	public function SuccessTransatction() {
		echo "Transaction succesful";
		return;
		
		$doc =& JFactory::getDocument();
		$format = $doc->getType();
		$view = $this->getView('paypal', $format);
		
//		parent::display();
	}
	
	
}
